<?php

namespace app\model\user_profile_model;

use app\BaseModel;
use app\model\UserModel;
use think\model\relation\BelongsTo;

class UserProfileRecode extends BaseModel
{
    protected $name = 'user_profile_recode';

    /**
     * 关联用户表-获取用户信息
     * @return BelongsTo
     */
    public function getUserInfo(): BelongsTo
    {
        return $this->belongsTo(UserModel::class,'uid')->bind(['name','role_mode','avatar','type']);
    }
}